<?php
/**
 * Each engineer has a duty to keep the code elegant
 * Created by wolffy.
 * Author @wolffy<13750088090@sina.cn>
 * Date: 2018/8/12
 * Time: 11:40
 */
namespace App\Repositories;

use App\Models\CreditCardHandleApply;

class CreditCardHandleApplyRepository
{
    /**
     * @param array $params
     * @return mixed
     */
    public function create(array $params)
    {
        return CreditCardHandleApply::create($params);
    }

    public function isApply($applyMobile, $creditCardHandleId)
    {
        return CreditCardHandleApply::where([
            'apply_mobile' => $applyMobile,
            'credit_card_handle_id' => $creditCardHandleId,
            ])->first();
    }
}